#include<iostream>
#include<cstdio>
using namespace std;
const int MOD=10000;
void gao(int p, int n){
	
}
int main(){
	int p, n;
	while(scanf("%d%d", &p, &n) && (p||n)){
		gao(p, n);
	}
	return 0;
}
